package com.sxt.sys.mapper;

import com.sxt.sys.domain.Permission;

import java.io.Serializable;
import java.util.List;

import org.apache.ibatis.annotations.Delete;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 老雷
 * @since 2019-08-10
 */
public interface PermissionMapper extends BaseMapper<Permission> {
	
	
	/**
	 * 根据菜单或权限ID删除 sys_role_permission里面的数据
	 */
	@Delete(value="delete from sys_role_permission where pid=#{value}")
	public void deleteRolePermissionByPid(Serializable pid);

	public List<Integer> queryPermissionIdsByRoleIds(List<Integer> roleIds);
	

}
